package com.vcaresolution.logistic.dao;

import org.springframework.stereotype.Repository;

import com.vcaresolution.logistic.pojo.Jobregister;

/**
 * The <code>JobDAO</code> class is a DAO Associated to do various 
 * options at DAO level
 *
 * @author Sneahl Shah
 * @version 1.0
 * @since ShipSoft 1.0
 */
@Repository
public class JobDAO extends BaseDAO{

	public void add(Jobregister jobRegister) {
		super.add(jobRegister);
		
		System.out.println("Job No Id is "+jobRegister.getJobnoid());
		jobRegister.setJobno(jobRegister.getJobno()+"-"+jobRegister.getJobnoid());
		
		super.update(jobRegister);
	}
}
